package org.csu.goodpartner.service;

import org.csu.goodpartner.VO.AccountVO;
import org.csu.goodpartner.common.CommonResponse;
import org.csu.goodpartner.entity.Account;
import org.springframework.stereotype.Service;


public interface AccountService  {
    //注册账号
   public CommonResponse<Account> registerAccount(String username,String password,String telephone);
   //登录账号
    public CommonResponse<AccountVO> login(int id,String password);
    //更改账户信息
    public CommonResponse<AccountVO> updateAccount(int id,
                                                   String username,
                                                   String password,
                                                   String telephone,
                                                   String IDCard,
                                                   String email,
                                                   String addr);
    //注销账户信息
    public CommonResponse deleteAccount(int id);
    //查找账户
    public CommonResponse<AccountVO> oneAccount(int id);
}
